package cn.java83.zsb.springcloudserve.entity;

//import com.fasterxml.jackson.annotation.JsonFormat;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
//import org.hibernate.validator.constraints.Length;
//import org.hibernate.validator.constraints.Range;
//import org.hibernate.validator.constraints.URL;
//
//import javax.validation.constraints.Future;
//import javax.validation.constraints.NotBlank;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

@TableName("advtise")
public class Advtise implements Serializable {

    @TableId(type = IdType.AUTO)
    private long id;

     private String title;

    private String url;


    private boolean isvalid;

    private int sortorder;

    //@TableField(value = "start_time",exist = false)
    private Date starttime;

    private String imgurl;

    private String target;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isIsvalid() {
        return isvalid;
    }

    public void setIsvalid(boolean isvalid) {
        this.isvalid = isvalid;
    }

    public int getSortorder() {
        return sortorder;
    }

    public void setSortorder(int sortorder) {
        this.sortorder = sortorder;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    @Override
    public String toString() {
        return "Advtise{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", isvalid=" + isvalid +
                ", sortorder=" + sortorder +
                ", starttime=" + starttime +
                ", imgurl='" + imgurl + '\'' +
                ", target='" + target + '\'' +
                '}';
    }
}
